export function getTodayDate() {
    const date = new Date()
    const year = date.getFullYear()
    let month = date.getMonth()
    let day = date.getDate()
    month = month < 9 ? '0' + (month + 1) : month + 1
    day = day < 10 ? '0' + day : day
    return year + '-' + month + '-' + day

}
export function yesterday() {
    const date = new Date()
    const year = date.getFullYear()
    let month = date.getMonth()
    let day = date.getDate() - 1
    month = month < 9 ? '0' + (month + 1) : month + 1
    day = day < 10 ? '0' + day : day
    return year + '-' + month + '-' + day
}